package com.durian.city.api;

import com.durian.city.api.domain.City;
import com.durian.common.core.constant.ServiceNameConstants;
import com.durian.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author zhouzhiyi
 * @Date 2022/6/25 9:10
 * @Description 城市数据服务
 */
@FeignClient(contextId = "remoteCityService", value = ServiceNameConstants.SYSTEM_SERVICE,path = "/city")
public interface RemoteCityService {

    /**
     * 查询城市列表
     */
    @GetMapping("/list")
    public R<List<City>> list(City city);
}
